<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      div {
        border: solid 3px;
        padding: 10px;
        font-size: 40px;
      }
    </style>
  </head>

  <body>
    <div id="app">
      <div @click.capture="L(1)">
        1
        <div @click.capture="L(2)">
          2
          <div @click.capture="L(3)">
            3
            <div @click.capture="L(4)">4</div>
          </div>
        </div>
      </div>
    </div>
    <script type="module">
      import { createApp, ref, reactive, computed } from "./vue.esm-browser.js";
      const app = createApp({
        setup() {
          const L = (ctx) => console.log(ctx);
          return { L };
        },
      });

      app.mount("#app"); //挂载
    </script>
  </body>
</html>
